package com.zyh.study.pojo;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @Classname TradeEvent
 * @Description TODO()
 * @Date 2025-09-05 2:10
 * @Created by 86177
 */
@Data
public class TradeEvent {
    @JsonProperty("account_id")
    private String accountId;

    @JsonProperty("at")
    private String at;  // ISO8601时间戳

    @JsonProperty("event")
    private String eventType; // 事件类型：new/fill/canceled等

    @JsonProperty("event_id")
    private String eventId;  // ULID格式的事件ID

    @JsonProperty("execution_id")
    private String executionId;

    @JsonProperty("previous_execution_id")
    private String previousExecutionId;

    @JsonProperty("order")
    private OrderDetails order;  // 订单详情

    @JsonProperty("timestamp")
    private String timestamp;  // ISO8601时间戳
}
